import 'dart:convert';

import '../generated/json/base/json_field.dart';
import '../generated/json/res_entity.g.dart';

@JsonSerializable()
class ResEntity {
  int? code;
  dynamic data;
  String? msg;
  late bool success;
  int? total;
  dynamic rows;

  ResEntity();

  factory ResEntity.fromJson(Map<String, dynamic> json) =>
      $ResEntityFromJson(json);

  Map<String, dynamic> toJson() => $ResEntityToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
